package org.lex.ftp.ui.explorer.actions;

import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;

import org.lex.ftp.queue.QueueUtils;
import org.lex.ftp.ui.explorer.FTPExplorer;

public class TransferAction extends FTPExplorerAction {
	public TransferAction(FTPExplorer view) {
		super(view);
		this.setName("Transfer");
		this.setAcceleratorKey(KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.CTRL_DOWN_MASK, false));
	}

	public void actionPerformed(ActionEvent e) {
		QueueUtils.downloadSelected(explorer.app);
		explorer.app.getContentPane().getQueuePane().transfer();
	}
}
